package cn.tedu.ems.studyfile.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

//发布文章
@Data
public class StudyRelease {
    @ApiModelProperty(value = "id")
    private Integer id;
    @ApiModelProperty(value = "标题")
    private String title;
    @ApiModelProperty(value = "内容")
    private String content;
    @ApiModelProperty(value = "视频地址")
    private String videoAddress;
    @ApiModelProperty(value = "类型")
    private String type ="2";
    @ApiModelProperty(value = "状态")
    private String state="1";
    @ApiModelProperty(value = "浏览量")
    private Integer views = 0;
    @ApiModelProperty(value = "发布者")
    private String publisher;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    @ApiModelProperty(value = "分类id")
    private Integer articleVideoCategoryId;
    @ApiModelProperty(value = "删除时间")
    private Date deleteTime;
    @ApiModelProperty(value = "文件id")
    private Integer fileId;
}
